﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Service.Infrastructure;

namespace Web.Areas.Sys.Controllers
{
    public class HandleController : Controller
    {
        private readonly BaseService _service = new BaseService();
        //
        // GET: /Sys/Handle/

        public ActionResult EditorImgUp()
        {
            return Content((String)_service.ImgUp(System.Web.HttpContext.Current, "UpLoad").GetData());
        }

        public ActionResult EditorImgMangaer()
        {
            var msg = _service.ImgMananger(System.Web.HttpContext.Current).GetData();
            return Content(msg == null ? String.Empty : (String)msg);
        }

        public ActionResult EditorSubmit()
        {
            var context = System.Web.HttpContext.Current.Request.Form["content"];
            return Content("");
        }

    }
}
